<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Mushishi</title>
    <meta name="generator" content="HTMLTestRunner 0.8.2.3"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="http://libs.baidu.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script src="http://libs.baidu.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
    
<style type="text/css" media="screen">
body        { font-family: Microsoft YaHei,Tahoma,arial,helvetica,sans-serif;padding: 20px; font-size: 80%; }
table       { font-size: 100%; }

/* -- heading ---------------------------------------------------------------------- */
.heading {
    margin-top: 0ex;
    margin-bottom: 1ex;
}

.heading .description {
    margin-top: 4ex;
    margin-bottom: 6ex;
}

/* -- report ------------------------------------------------------------------------ */
#total_row  { font-weight: bold; }
.passCase   { color: #5cb85c; }
.failCase   { color: #d9534f; font-weight: bold; }
.errorCase  { color: #f0ad4e; font-weight: bold; }
.hiddenRow  { display: none; }
.testcase   { margin-left: 2em; }
</style>

</head>
<body >
<script language="javascript" type="text/javascript">
output_list = Array();

/*level 调整增加只显示通过用例的分类 --Adil
0:Summary //all hiddenRow
1:Failed  //pt hiddenRow, ft none
2:Pass    //pt none, ft hiddenRow
3:Error   // pt hiddenRow, ft none
4:All     //pt none, ft none
下面设置 按钮展开逻辑  --Yang Yao Jun
*/
function showCase(level) {
    trs = document.getElementsByTagName("tr");
    for (var i = 0; i < trs.length; i++) {
        tr = trs[i];
        id = tr.id;
        if (id.substr(0,2) == 'ft') {
            if (level == 2 || level == 0 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
        if (id.substr(0,2) == 'pt') {
            if (level < 2 || level ==3 ) {
                tr.className = 'hiddenRow';
            }
            else {
                tr.className = '';
            }
        }
    }

    //加入【详细】切换文字变化 --Findyou
    detail_class=document.getElementsByClassName('detail');
    //console.log(detail_class.length)
    if (level == 3) {
        for (var i = 0; i < detail_class.length; i++){
            detail_class[i].innerHTML="收起"
        }
    }
    else{
            for (var i = 0; i < detail_class.length; i++){
            detail_class[i].innerHTML="详细"
        }
    }
}

function showClassDetail(cid, count) {
    var id_list = Array(count);
    var toHide = 1;
    for (var i = 0; i < count; i++) {
        //ID修改 点 为 下划线 -Findyou
        tid0 = 't' + cid.substr(1) + '_' + (i+1);
        tid = 'f' + tid0;
        tr = document.getElementById(tid);
        if (!tr) {
            tid = 'p' + tid0;
            tr = document.getElementById(tid);
        }
        id_list[i] = tid;
        if (tr.className) {
            toHide = 0;
        }
    }
    for (var i = 0; i < count; i++) {
        tid = id_list[i];
        //修改点击无法收起的BUG，加入【详细】切换文字变化 --Findyou
        if (toHide) {
            document.getElementById(tid).className = 'hiddenRow';
            document.getElementById(cid).innerText = "详细"
        }
        else {
            document.getElementById(tid).className = '';
            document.getElementById(cid).innerText = "收起"
        }
    }
}

function html_escape(s) {
    s = s.replace(/&/g,'&');
    s = s.replace(/</g,'<');
    s = s.replace(/>/g,'>');
    return s;
}
</script>
<div class='heading'>
<h1 style="font-family: Microsoft YaHei">Mushishi</h1>
<p class='attribute'><strong>测试人员 : </strong> lwjnicole</p>
<p class='attribute'><strong>开始时间 : </strong> 2020-10-26 21:00:46</p>
<p class='attribute'><strong>合计耗时 : </strong> 0:00:02.193020</p>
<p class='attribute'><strong>测试结果 : </strong> 共 8，通过 5，失败 3，通过率= 62.50%</p>

<p class='description'>this is test</p>
</div>



    <p id='show_detail_line'>
    <a class="btn btn-primary" href='javascript:showCase(0)'>通过率 [62.50% ]</a>
    <a class="btn btn-success" href='javascript:showCase(2)'>通过[ 5 ]</a>
    <a class="btn btn-warning" href='javascript:showCase(3)'>错误[ 0 ]</a>
    <a class="btn btn-danger" href='javascript:showCase(1)'>失败[ 3 ]</a>
    <a class="btn btn-info" href='javascript:showCase(4)'>所有[ 8 ]</a>
    </p>
<table id='result_table' class="table table-condensed table-bordered table-hover">
<colgroup>
<col align='left' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
<col align='right' />
</colgroup>
<tr id='header_row' class="text-center success" style="font-weight: bold;font-size: 14px;">
    <td>用例集/测试用例</td>
    <td>总计</td>
    <td>通过</td>
    <td>错误</td>
    <td>失败</td>
    <td>详细</td>
</tr>

<tr class='failClass warning'>
    <td>run_case_ddt.TestRunCaseDdt</td>
    <td class="text-center">8</td>
    <td class="text-center">5</td>
    <td class="text-center">0</td>
    <td class="text-center">3</td>
    <td class="text-center"><a href="javascript:showClassDetail('c1',8)" class="detail" id='c1'>详细</a></td>
</tr>

<tr id='ft1_1' class='none'>
    <td class='failCase'><div class='testcase'>test_main_case_1___fx_delete001____查询人员编号____yes___None__None___p_personPower_query____post______userCode___019582______yes____yes____json___None___失败______content______id___190451___userId___26738___person_____id___26738___name____王力行____code____019582____jobNumber____019582____sex___1___phone___null___email____019582_yong_gang_cn____userTypeCode____01____userTypeName___null___orgName___null___idcard____320582198610036012____remark________state____001____stateName___null___emergencyContactName________emergencyContactPhone________orderNo___0___createTime___1589440224000___updateTime___1592117070000___imagesList___null___personFace___null___personBlack___null___accessDeviceRightsGroupIds___null___accessDeviceRightsGroupNames___null___orgid___38587___organization_____id___38587___name____精炼组____code____LFSY09130602____orgType___1___pid___38585___longName____永钢集团_联峰实业_特钢事业部_电炉分厂_炼钢甲班作业区_精炼组____orderNo___1362___createTime___1589472549000___updateTime___1589472549000___pname___null___level___null____isHaveAuthorization___null____userName____王力行____userPhone___null___userCardId____320582198610036012____userDept____精炼组____accessReason____平台授权____accessDeviceRightsGroupIds____12_13____authorizationUserCode____009011____authorizationUserName____茅丽艳____startDate___1599580800000___endDate___4761820799999___authorizationDateTime___1599611924804___cancelDateTime___0___cancelUserCode________cancelUserName________state___1___isExpire___0___createTime___1599611925000___updateTime___1599611984000___personDeviceRightsGroup____16号门速通门_集宿中心通行____groupList___null_____pageable_____sort_____sorted___true___unsorted___false___empty___false____pageNumber___0___pageSize___10___offset___0___paged___true___unpaged___false____totalPages___1___totalElements___1___last___true___first___true___sort_____sorted___true___unsorted___false___empty___false____numberOfElements___1___size___10___number___0___empty___false___</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_ft1_1' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_1'>失败</button>
    <div id='div_ft1_1' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_ft1_1' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_1'>失败</button>
    <div id='div_ft1_1' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
ft1_1: {'dictionary_item_added': [root['content'], root['sort'], root['pageable'], root['totalPages'], root['last'], root['empty'], root['size'], root['totalElements'], root['number'], root['numberOfElements'], root['first']], 'dictionary_item_removed': [root['code'], root['message'], root['data']]}
Traceback (most recent call last):
  File "D:\selemil\vene\ai01\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 106, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 103, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 99, in test_main_case
    self.assertTrue(result)
AssertionError: False is not true


    </pre>
    </div>
    </td>
</tr>

<tr id='ft1_2' class='none'>
    <td class='failCase'><div class='testcase'>test_main_case_2___fx_delete002____查询人员权限____yes___None__None___p_person_queryRecursive2____post______n_____code____JZ01493___n_____orgCode____0__n_____no____yes____ExcepectCode_____UNAUTHORIZED_____失败______msg____非法请求____code____UNAUTHORIZED____</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_ft1_2' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_2'>失败</button>
    <div id='div_ft1_2' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_ft1_2' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_2'>失败</button>
    <div id='div_ft1_2' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
ft1_2: Traceback (most recent call last):
  File "D:\selemil\vene\ai01\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 106, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 89, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 85, in test_main_case
    self.assertEqual(excepect_result, res_code)
AssertionError: '"UNAUTHORIZED"' != 'UNAUTHORIZED'
- "UNAUTHORIZED"
? -            -
+ UNAUTHORIZED



    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_3' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_main_case_3___fx_delete004____查询黑名单未输入参数____yes___None__None___p_personBlack_query____post______n_____code_______n_____orgCode______n____None___yes____ExcepectCode____0____通过___None_</div></td>
    <td colspan='5' align='center'><span class="label label-success success">通过</span></td>
</tr>

<tr id='ft1_4' class='none'>
    <td class='failCase'><div class='testcase'>test_main_case_4___fx_delete005____查询黑名单____yes___None__None___p_personBlack_query____post______n_____code____JZ01496___n_____orgCode____2__n____None___yes____json___None___通过______code___0___message____请求成功____data_____content______id___45113___name____苏州方兴测试____code____sAdmin____jobNumber____testcode010____sex___2___phone____18756908245____email________userTypeCode____01____userTypeName____内部员工____orgid___37656___orgCode____LFSY____orgName____联峰实业____idcard________state____001____stateName____正式员工____reason____测试______id___35239___name____邢太伟____code____412921197708130718____jobNumber___null___sex___0___phone____13213739659____email___null___userTypeCode____02____userTypeName____外部访客____orgid___39920___orgCode____EXTERNAL_OTHER____orgName____外部单位__其他公司名称未知____idcard____412921197708130718____state____W01____stateName____外单位____reason____侵占公司财物______pageable_____sort_____sorted___false___unsorted___true___empty___true____pageNumber___0___pageSize___2___offset___0___paged___true___unpaged___false____totalPages___1___totalElements___2___last___true___first___true___sort_____sorted___false___unsorted___true___empty___true____numberOfElements___2___size___2___number___0___empty___false____</div></td>
    <td colspan='5' align='center'>
    <!--默认收起错误信息 -Findyou
    <button id='btn_ft1_4' type="button"  class="btn btn-danger btn-xs collapsed" data-toggle="collapse" data-target='#div_ft1_4'>失败</button>
    <div id='div_ft1_4' class="collapse">  -->

    <!-- 默认展开错误信息 -Findyou -->
    <button id='btn_ft1_4' type="button"  class="btn btn-danger btn-xs" data-toggle="collapse" data-target='#div_ft1_4'>失败</button>
    <div id='div_ft1_4' class="collapse in" style='text-align: left; color:red;cursor:pointer'>
    <pre>
    
ft1_4: {'dictionary_item_added': [root['content'], root['sort'], root['pageable'], root['totalPages'], root['last'], root['empty'], root['size'], root['totalElements'], root['number'], root['numberOfElements'], root['first']], 'dictionary_item_removed': [root['code'], root['message'], root['data']]}
Traceback (most recent call last):
  File "D:\selemil\vene\ai01\lib\site-packages\ddt.py", line 182, in wrapper
    return func(self, *args, **kwargs)
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 106, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 103, in test_main_case
    raise e
  File "D:\BaiduNetdiskDownload\WebApiCode\WebApiV1\Run\run_case_ddt.py", line 99, in test_main_case
    self.assertTrue(result)
AssertionError: False is not true


    </pre>
    </div>
    </td>
</tr>

<tr id='pt1_5' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_main_case_5___fx_delete006____新增品牌错误____yes___None__None___a_deviceBrand_add____post______code____hk123456___n_config_____12344444____n_deviceType____03___n_name____海宇监控_____None___yes____mec___None___通过______code___13003___message____品牌编号对应的品牌信息已存在____data________</div></td>
    <td colspan='5' align='center'><span class="label label-success success">通过</span></td>
</tr>

<tr id='pt1_6' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_main_case_6___fx_delete007____新增品牌成功____yes___None__None___a_deviceBrand_add____post______code____hk123456___n_config_________n_deviceType____03___n_name____海宇监控_____None___yes____mec___None___通过______code___0___message____请求成功____data_____id___209___name____海宇监控____code____hk123456____deviceType____03____config________createTime____2020_10_26_13_43_20____updateTime_________</div></td>
    <td colspan='5' align='center'><span class="label label-success success">通过</span></td>
</tr>

<tr id='pt1_7' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_main_case_7___fx_delete008____删除品牌____yes___None__None___a_deviceBrand_delete____post______code____hk123456__n____None___yes____mec___None___通过______code__0__message___请求成功___data_______</div></td>
    <td colspan='5' align='center'><span class="label label-success success">通过</span></td>
</tr>

<tr id='pt1_8' class='hiddenRow'>
    <td class='passCase'><div class='testcase'>test_main_case_8__None__None__None__None__None__None__None__None__None__None__None__None__None__None_</div></td>
    <td colspan='5' align='center'><span class="label label-success success">通过</span></td>
</tr>

<tr id='total_row' class="text-center active">
    <td>总计</td>
    <td>8</td>
    <td>5</td>
    <td>0</td>
    <td>3</td>
    <td>通过率：62.50%</td>
</tr>
</table>

<div id='ending'> </div>
    <div style=" position:fixed;right:50px; bottom:30px; width:20px; height:20px;cursor:pointer">
    <a href="#"><span class="glyphicon glyphicon-eject" style = "font-size:30px;" aria-hidden="true">
    </span></a></div>
    

</body>
</html>
